package week9.q4;

public class ElectricVehicle extends Vehicle implements IPower {
    public ElectricVehicle(String color,String brand) {
            super(brand,color);}

    @Override
    public void run() {
        System.out.println(getColor()+getBrand());
    }

    @Override
    public void power() {
        System.out.println(getBrand()+"正在充电");

    }
}


